package com.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.common.enumbean.PermissionType;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
@Data
@NoArgsConstructor()
@TableName("sys_permission")
public class SysPermission {
//    //
//    CREATE TABLE sys_permission (
//            id INT PRIMARY KEY AUTO_INCREMENT COMMENT '权限ID',
//            perm_key VARCHAR(100) NOT NULL UNIQUE COMMENT '权限标识符（如:user:delete）',
//    perm_name VARCHAR(50) NOT NULL COMMENT '权限名称',
//    perm_type ENUM('API','MENU','BUTTON','DATA') NOT NULL COMMENT '权限类型',
//    service_module VARCHAR(50) COMMENT '所属服务模块',
//    description VARCHAR(100) COMMENT '权限描述',
//    create_time DATETIME DEFAULT CURRENT_TIMESTAMP
//) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='原子权限表';
@TableId(type= IdType.AUTO)
    private Integer id;
    private String perm_key;
    private String perm_name;
    private PermissionType perm_type;
    private String service_module;
    private String description;
    private LocalDateTime create_time;


}
